package com.kitty.game.party.model;

import com.kitty.common.thread.IdGenerator;
import com.kitty.game.utils.TimeUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**帮派红包*/
@Getter
@Setter
public class PartyRedBag {
    /***/
    private long id;
    /**银元宝*/
    private short siver;
    /**红包数量*/
    private short count;
    /**剩余银元宝*/
    private short remainSiver;
    /**剩余红包数量*/
    private short remainCount;
    /**发红包时间*/
    private int time;
    /**发红包的角色uid*/
    private long senderUid;
    /**发红包的角色名称*/
    private String senderName;
    /**发送信息*/
    private String msg;
    private Map<Long, FetchRedBagRecord> fetchRedBagRecordMap;

    public PartyRedBag() {}

    public PartyRedBag(long senderUid, String senderName, short siver, short count, String msg) {
        id = IdGenerator.getNextId();
        this.siver = siver;
        this.count = count;
        this.remainSiver = siver;
        this.remainCount = count;
        this.time = (int) (System.currentTimeMillis() / TimeUtil.ONE_SECOND);
        this.senderUid = senderUid;
        this.senderName = senderName;
        this.msg = msg;
    }
}
